package com.paw.trace.skywalk.controller;

import com.paw.trace.skywalk.service.SkyWalkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lvzihai
 * @date: 2021/5/30
 **/
@Slf4j
@RestController
public class SkyWalkController {

  @Autowired
  private SkyWalkService skyWalkService;


  @GetMapping("/skyWalking")
  public String skyWalk(){
    log.info("skyWalking");
    return "skyWalking";
  }


  @GetMapping("/skyWalkFeign")
  public String skyWalkFeign(){
    log.info("controller skyWalkFeign");
    skyWalkService.doSth();
    return "skyWalkFeign";
  }
}
